package com.lagou.webwork.factory;

import com.lagou.webwork.dao.StudentDao;
import com.lagou.webwork.dao.StudentDaoImp;
import com.lagou.webwork.model.Student;

/**
 * @author sjp
 * @date 2021/5/27 14:00
 * @description
 */
public class StudentFactory {
    private static StudentDao studentDao;

    static {
        studentDao = new StudentDaoImp();
    }

    /**
     * 获取StudentDao对象
     * @return
     */
    public static StudentDao getStudentDao() {
        return studentDao;
    }
}
